package com.migu.contacts.main.my;

import static com.migu.contacts.net.Service.API;

import android.text.Html;

import com.frank.libandroid.BaseActivity;
import com.migu.contacts.bean.PrivacyBean;
import com.migu.contacts.databinding.ActivityPrivacyBinding;
import com.migu.contacts.net.ResultCallback;

public class PrivacyActivity extends BaseActivity<ActivityPrivacyBinding> {

    @Override
    protected void initData() {
        super.initData();
        API.commonDocumentPrivacy().enqueue(new ResultCallback<PrivacyBean>() {
            @Override
            protected void onSuccess(PrivacyBean privacyBean) {
                mBinding.setBean(privacyBean);
                mBinding.content.setText(Html.fromHtml(privacyBean.content));
            }
        });
    }
}